<?php
/**
 * Created by gumaor.com
 * User: tommy
 */

namespace app\v1\controller;


use lib\jwt\Token;
use Timo\Core\Application;
use Timo\Core\Request;

class Login
{
    public function login()
    {
        $uid = Request::get('uid', 0);
        $token = Token::createToken($uid);
        return Application::result(0, 'ok', [
            'token' => $token
        ]);
    }
}
